home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / x-faq / part4 < prev    next >
Encoding:
Text File  |  1993-06-15  |  47.9 KB  |  1,000 lines

  1. Newsgroups: comp.windows.x,news.answers,comp.answers
  2. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!news.media.mit.edu!uhog.mit.edu!eddie.mit.edu!news.kei.com!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!visual!dbl
  3. From: dbl@visual.com (David B. Lewis)
  4. Subject: comp.windows.x Frequently Asked Questions (FAQ) 4/5
  5. Message-ID: <C8o1Ln.GwK@visual.com>
  6. Followup-To: poster
  7. Summary: useful information about the X Window System
  8. Reply-To: faq%craft@uunet.uu.net (X FAQ maintenance address)
  9. Organization: VISUAL, Inc.
  10. Date: Tue, 15 Jun 1993 14:00:59 GMT
  11. Approved: news-answers-request@MIT.Edu
  12. Expires: Sun, 18 Jul 1993 00:00:00 GMT
  13. Lines: 984
  14. Xref: senator-bedfellow.mit.edu comp.windows.x:69168 news.answers:9435 comp.answers:1014
  15.  
  16. Archive-name: x-faq/part4
  17. Last-modified: 1993/06/15
  18.  
  19. ----------------------------------------------------------------------
  20. Subject:  81)  Where can I get an X-based plotting program?
  21.  
  22. These usually are available from uucp sites such as uunet or other sites as
  23. marked; please consult the archie server to find more recent versions.
  24.  
  25.  gnuplot    X (xplot), PostScript and a bunch of other drivers.
  26.     export.lcs.mit.edu [and elsewhere]:contrib/gnuplot3.1.tar.Z
  27.  
  28.  gl_plot    X output only [?]
  29.     comp.sources.unix/volume18
  30.  
  31.  graph+
  32.     yallara.cs.rmit.oz.au:/pub/graph+.tar.Z [131.170.24.42]
  33.     comp.sources.unix/volume8
  34.  
  35.  pdraw,drawplot        2D and 3D X,PS
  36.     scam.berkeley.edu:/src/local/3dplot.tar.Z [128.32.138.1]
  37.     scam.berkeley.edu:/src/local/contour.tar.Z [128.32.138.1]
  38.     scam.berkeley.edu:/src/local/drawplot.tar.Z [128.32.138.1]
  39.     uunet:~ftp/contrib/drawplot.tar.Z
  40.  
  41.  xgraph        plot, zoom. Outputs PS or HPGL.
  42.     shambhala.berkeley.edu:/pub/xgraph-11.tar.Z [128.32.132.54]
  43.     sun1.ruf.uni-freiburg.de:X11/contrib/xgraph-11.tar.Z [132.230.1.1]
  44.     nisc.jvnc.net:pub/xgraph-11.tar.Z [128.121.50.7]
  45.     comp.sources.x/volume3
  46.     or many other sites 
  47.  
  48.  ACE/gr (formerly xvgr and xmgr) XY plotting tools
  49.     ftp.ccalmr.ogi.edu [129.95.72.34]
  50.     XView version: /CCALMR/pub/acegr/xvgr-2.10.tar.Z
  51.     Motif version: /CCALMR/pub/acegr/xmgr-2.10.tar.Z
  52.     [mirrored on export in /contrib/acegr]
  53.  
  54.  XGobi        An interactive dynamic scatter-plotting tool from Bellcore
  55.     lib.stat.cmu.edu: general/xgobi* [log in as statlib with your email
  56.     as the password; or send email to statlib@lib.stat.cmu.edu containing
  57.     the one-line message "send xgobi from general"]
  58.     Information from: Debby Swayne, dfs@bellcore.com.
  59.  
  60.  Robot        a scientific XView-based graph plotting and data analysis tool
  61.     ftp.astro.psu.edu:pub/astrod/robotx0.46.tar.Z [128.118.147.28]
  62.  
  63.  plotmtv    a multi-purpose 2D/3D plotter
  64.     tanqueray.berkeley.edu:/pub/Plotmtv1.3.1.tar.Z
  65.     
  66.  
  67. [2/91. Thanks in part to: emv@ox.com (Ed Vielmetti); geoff@Veritas.COM 
  68. (Geoffrey Leach); Paul A. Scowen (uk1@spacsun.rice.edu); black@beno.CSS.GOV 
  69. (Mike Black)]
  70.  
  71. ----------------------------------------------------------------------
  72. Subject:  82)! Where can I get an X-based spreadsheet?
  73.  
  74. A version of "sc" for X and which supports Lotus files is available from
  75. vernam.cs.uwm.edu in xspread2.0.tar.Z. It also includes graphing functions.
  76. Information: soft-eng@cs.uwm.edu.
  77.  
  78. The GNU package OLEO is available in prep.ai.mit.edu:pub/gnu/oleo-1.4.tar.Z;
  79. it can generate PostScript renditions of spreadsheets.
  80.  
  81. Also:
  82.  
  83. Several of the below are part of integrated office-productivity tools which may
  84. also include word-processing, email, conferencing, image processing, and 
  85. drawing/painting, among other features.
  86.  
  87. Vendor                        Product    Contact Information 
  88. ------                        -------    -------------------
  89. Access Technology             20/20      508-655-9191
  90. Informix                      WingZ      800-331-1763
  91. Quality Software Products     Q-Calc/eXclaim    800-628-3999 (CA:213-410-0303) 
  92. Unipress                      Q-Calc     201-985-8000
  93. Uniplex                       Uniplex    214-717-0068, 800-356-8063
  94. Digital                  DECdecision   1-800-DIGITAL
  95. Applix                  Aster*x     508-870-0300, 1-800-8APPLIX.
  96. AIS                  XESS     919-942-7801, info@ais.com
  97. BBN Software Products         BBN/Slate  617-873-5000 slate-offer@bbn.com
  98. Elsid Software Systems          Ripcam     613-228-9468
  99. Andrew Consortium          table     info-andrew-request@andrew.cmu.edu
  100.  
  101. SAS by the SAS Institute now has a spreadsheet module; the X version is
  102. available on the current popular RISC platforms.
  103.  
  104. ----------------------------------------------------------------------
  105. Subject:  83)  Where can I get X-based project-management software?
  106.  
  107. Vendor                            Product        Contact Information 
  108. ------                -------        -------------------
  109. Productivity Solutions        Ultra Planner    617-237-1600
  110. Quality Software Products     MasterPlan Version, 310-410-0303 sales@qsp.com
  111. Digital Tools, Inc.        AutoPLAN    408-366-6920, 800-755-0065
  112. NASA                COMPASS        404-542-3265,
  113.                         service@cossack.cosmic.uga.edu
  114. GEC-Marconi Software Systems    GECOMO Plus    703-648-1551
  115. GEC-Marconi Software Systems    SIZE Plus    703-648-1551
  116. TEI, Inc            VUE        408-985-7100
  117. Mantix                Cascade        703-506-8833
  118. Advanced Management Solutions    Schedule Publisher    800-397-6829
  119. Auburn University        ??        ??
  120.  
  121. [thanks to Pete Phillips (pete@egh-qc.co.uk); 7/92]
  122. [thanks to Atul Chhabra (atul@nynexst.com); 10/92]
  123.  
  124. ----------------------------------------------------------------------
  125. Subject:  84)! Where can I get an X-based PostScript previewer?
  126.  
  127.     Ghostscript is distributed by the Free Software Foundation 
  128. (617-876-3296) and includes a PostScript interpreter and a library of graphics
  129. primitives. Version 2.6.1 is now available; the major site is prep.ai.mit.edu,
  130. although ftp.cs.wisc.edu is also recommended. [6/93]  Version 3.0 is scheduled
  131. for December; it will include a full implementation of PostScript Level 2.
  132.  
  133.     GSPreview (by the Computing Laboratory of the University of Kent at 
  134. Canterbury) is an X user interface (WCL-based) to the Ghostscript 2.4-2.6
  135. interpreter.  The source is available for anonymous ftp from 
  136. export.lcs.mit.edu as gspreview.2.3.tar.Z. [6/93]
  137.  
  138.     Ghostview (by Tim Theisen, tim@cs.wisc.edu) is full-function user 
  139. interface for GhostScript. Check ftp.cs.wisc.edu or prep.ai.mit.edu for 
  140. /pub/ghostview-1.4.1.tar.Z [1/93]. There are also several executables available
  141. on ftp.cs.wisc.edu:/pub/X/ghostview-exe for various architectures.
  142.  
  143. Also:
  144.  
  145.     ScriptWorks is Harlequin's software package for previewing and printing
  146. PostScript(R) descriptions of text and graphics images; previewers for X are 
  147. available. For information call +44-223-872522 or send email to 
  148. scriptworks-request@harlqn.co.uk.
  149.  
  150.     Image Network's Xps supports the full PostScript language and renders
  151. in color, grayscale, or monochrome. Fonts displayed are anti-aliased. Info:
  152. Image Network, +1 415 967 0542.
  153.  
  154.     Digital's dxpsview runs on UWS 2.1 and 2.2.
  155.  
  156.     Sun's pageview runs with the X11/NeWS server. 
  157.  
  158. ----------------------------------------------------------------------
  159. Subject:  85)  Where can I get an X-based GKS package?
  160.  
  161.     The latest freely-available XGKS can be obtained from 
  162. xgks-request@unidata.ucar.edu; this is a 2c implementation derived from the 
  163. X11R4 contrib XGKS from IBM and the University of Illinois. The release
  164. is on unidata.ucar.edu [128.117.140.3] as pub/xgks.tar.Z. [12/90]
  165.     In addition, Grafpak-GKS is available from Advanced Technology Center
  166. (714-583-9119).
  167.     GKSUL is available from gks@ulowell.edu (ULowell CS department). It is
  168. a 2b implementation which includes drivers for a variety of devices. It can be 
  169. passed an X window ID to use. The package includes both C and Fortran bindings.
  170.  
  171. [11/90; from dsrand@mitre.org and from stew@hanauma.stanford.edu]
  172.  
  173.     An XgksWidget is produced by Neil Bowers (neilb@leeds.dcs; 
  174. neilb@dcs.leeds.ac.uk); the latest [10/91] conforms with the new version of 
  175. XGKS (2.4). It is available on export in contrib/xgks-widget.tar.Z. 
  176.  
  177. ----------------------------------------------------------------------
  178. Subject:  86)  Where can I get an X-based PEX package?
  179.  
  180.     The first official release of PEX is with X11R5; fix-22 brings the
  181. Sample Implementation server to version 5.1.
  182.  
  183.     The final PEX 5.1 Protocol specification is now available via anonymous
  184. ftp to export.lcs.mit.edu (18.24.0.12), in the directory /pub/DOCS/PEX/. 
  185. Changes made from the Public Review draft are listed in the file "5.1P_changes"
  186. in that directory. [9/92]
  187.  
  188.     The final PEXlib 5.1 document is on export in pub/DOCS/PEXlib. [11/92]
  189.  
  190.     There is now available from the University of Illinois an 
  191. implementation of the PEX 4.0 specification called UIPEX. It contains a "near-
  192. complete" implementation of PHiGS and PHiGS PLUS. The file 
  193. pub/uipex/uipex.tar.Z is on a.cs.uiuc.edu (128.174.252.1); the porting platform
  194. was an RT running 4.3.  Questions and comments can to go uipex@cs.uiuc.edu. 
  195.  
  196.     In addition, the PEXt toolkit by Rich Thomson (rthomson@dsd.es.com) is 
  197. available on export as PEXt.tar.Z; it includes a PEX widget making it easier to
  198. include PEX in Xt-based programs.
  199.  
  200. ----------------------------------------------------------------------
  201. Subject:  87)  Where can I get an X-based TeX or DVI previewer?
  202.  
  203.     The xtex previewer for TeX files is available from a number of archive 
  204. sites, including uunet; the current version is usually on ftp.cs.colorado.edu
  205. (128.138.204.31) in SeeTeX-2.18.5.tar.Z; pre-converted fonts are also on that 
  206. machine. The distribution all includes "mftobdf" which converts PK, GF, and PXL
  207. fonts to BDF format, where they can then be compiled for use by your local X
  208. server. 
  209.     The xdvi dvi-previewer is fairly comprehensive and easy to use. It is 
  210. also available from a number of sites, including uunet and export.lcs.mit.edu;
  211. current version is patchlevel 16 [12/92].
  212.  
  213. ----------------------------------------------------------------------
  214. Subject:  88)  Where can I get an X-based troff previewer?
  215.  
  216.     X11R4 has two previewers for device-independent troff: the supported 
  217. client xditview, and the contributed-but-well-maintained xtroff. An earlier 
  218. version of xtroff also appeared on the R3 contributed source. xditview is also
  219. in the R5 distribution.
  220.     In addition, the xman client can be used to preview troff documents
  221. which use the -man macros (i.e. man pages).
  222.     If psroff is used its output can be viewed with a PostScript previewer.
  223.  
  224. In addition:
  225.  
  226.     xproof, an X previewer for ditroff has been contributed by Marvin 
  227. Solomon (solomon@cs.wisc.edu); version 3.5 is available on export in 
  228. contrib/xproof*.     [8/90]
  229.  
  230.     Elan Computer Group (CA: 415-964-2200) produces eroff, a modified 
  231. troff implementation, and Elan/Express, an X11 eroff previewer.
  232.  
  233.     SoftQuad (416-963-8337; USA only 800-387-2777, mail@sq.uu.net or
  234. mail@sq.com) offers SoftQuad Publishing Software, including a substantially-
  235. rewritten troff formatter, a better intermediate language with backwards 
  236. compatibility, and an X11[R3,R4] previewer. (This is the package adopted by 
  237. AT&T's own MIS department, and used in and re-sold by many parts of AT&T). 
  238. [information from Ian Darwin, SoftQuad (ian@sq.com) 3/90]
  239.  
  240.     Image Network (1-800-TOXROFF; CA: 415-967-0542) offers the Xroff 
  241. package, which includes a fine modified troff implementation and a set of 
  242. X11-based page previewers. (This is the package OEM'ed by several hardware 
  243. vendors.)
  244.  
  245. [mostly courtesy moraes@cs.toronto.edu (Mark Moraes)] [2/90]
  246.  
  247. ----------------------------------------------------------------------
  248. Subject:  89)! Where can I get a WYSIWYG interface builder?
  249.  
  250.     A new release of the DIRT interface builder by Richard Hesketh works 
  251. with X11R5 and includes some support for the Motif widget set. From the README:
  252.   This builder allows the interactive creation and rapid prototyping of X user
  253.   interfaces using the X Toolkit and a number of Widget Sets.  Dirt generates
  254.   "Wc - Widget Creation" resource files and this distribution also includes the
  255.   Widget Creation Library (version 1.06, with the exception of the demos and
  256.   Mri/Ari source code) with the kind permission of its author David E. Smyth.
  257. Check dirt.README, dirt.A2.0.tar.Z, and dirt.PS.Z on export.lcs.mit.edu.
  258.  
  259.     The InterViews 3.0.1 C++ toolkit contains a WYSIWIG interface builder 
  260. called ibuild. ibuild generates code for an InterViews application complete 
  261. with Imakefile and an X-resource file. Documentation is /pub/papers/ibuild.ps 
  262. on interviews.stanford.edu (36.22.0.175).
  263.     Quest Windows's (408-496-1900) ObjectViews C++ package includes an
  264. interactive building tool. 
  265.  
  266.     Druid (Demonstrational Rapid User Interface Development) runs on SPARC 
  267. machines using OSF/Motif 1.0; it is intended eventually to be a full UIMS but 
  268. apparently now has only support for creating the presentation components, for 
  269. which it generates C/UIL code. Info: Singh G, Kok CH, Ngan TY, "Druid: A System
  270. for Demonstrational Rapid User Interface Development". Proc. ACM SIGGRAPH Symp 
  271. on User Interface Software and Technology (UIST'90). ACM, NY, 1990, pp:167-177.
  272.  
  273.     The BYO interface builder is implemented in tcl.
  274.     The XF builder (version 2.2) is a TCL builder.
  275.  
  276.     ADEW in the Andrew User Interface System supports WYSIWYG user
  277. interface construction with the full selection of AUIS insets, including text,
  278. rasters, tables, and the usual interactors.  Semantics can be coded in C or in
  279. Ness, the AUIS extension language.
  280.  
  281. Also:
  282.     In addition, these commercial products (unsorted) are available in 
  283. final or prerelease form [the * following the product name indicates that the 
  284. product is known to allow the designer to specify for each widget whether a 
  285. particular resource is hard-coded or written to an application defaults file,
  286. for at least one form of output]. Some are much more than user-interface tools;
  287. some are full user interface management systems; information on most is not
  288. up-to-date:
  289.  
  290. Product Name        Look/Feel    Code Output        Vendor
  291.  
  292. HP Interface        Motif 1.1    C(Xm)            HP/Visual Edge
  293.  Architect/ UIMX    
  294. OPEN LOOK Express    OPEN LOOK    C(Xol+ helper lib)    AT&T /
  295.                                 Visual Edge
  296. UIMX 2.0 *        Motif 1.1    C(Xm + helper code)    Visual Edge
  297.                                 514-332-6430
  298.                                 & distributors
  299. VUIT 2.0        Motif 1.1    C/UIL[r/w]        DEC 
  300.                                 (1-800-DIGITAL)
  301. X-Designer 1.1 *    Motif 1.1    C(Xm); C/UIL        Imperial
  302.                                 Software
  303.                                 Technology, Ltd
  304.                                   (+44 734 587055)
  305.                                 sales@ist.co.uk
  306. XFaceMaker2 (XFM2) *     Motif 1.0    C;C/script (C-like procedural 
  307.                     language);C/UIL
  308.                                  NSL 
  309.                             (33 1 43 36 77 50)
  310.                             requests@nsl.fr
  311. Builder Xcessory 2.0 *    Motif 1.1    C(Xm); C/UIL[r/w]    ICS 
  312.                     Ada            (617-621-0060)
  313.                                 info@ics.com
  314. XBUILD 1.1 *        Motif 1.0    C(Xm); C/UIL         Nixdorf    
  315.                                 (617-864-0066)
  316.                             xbuild@nixdorf.com
  317. iXBUILD            Motif 1.1    C(Xm); C/UIL        iXOS Software
  318.                                 karl@ixos.uucp
  319.                                 089/461005-69
  320. TeleUSE 2.1 *        Motif 1.1.5    C(Xm); C/UIL[r/w]
  321.                                 Telesoft
  322.                                 (619-457-2700)
  323.                             gui_info@telesoft.com
  324. ezX 3.2            Motif 1.1    C(Xm +helper lib);C/UIL;Ada
  325.                                 Sunrise
  326.                                 (401-847-7868)
  327.                                    info@sunrise.com
  328. Snapix            Motif        C/Xm            ADNT
  329.                                 +33 1 3956 5333
  330. OpenWindows Developers    OPEN LOOK     GIL [-> C/XView]    Sun
  331. Guide 3.0                GIL [-> C++/XView]
  332.                     GIL [-> C/OLIT]
  333.                     GIL [-> C/PostScript for TNT]
  334. ExoCode/SXM        Motif        C(Xm)            Expert Object
  335. ExoCode/Plus        OPEN LOOK    XView            708-676-5555
  336. TAE+            Xw;Motif    C(Xw,Xm); C/TCL (TAE Control Language,
  337.                     like UIL[needs helper library]);
  338.                     VAX Fortran; Ada; C++
  339.                                 Nasa Goddard
  340.                                 (301) 286-6034
  341. MOB, XSculptor            Motif; OpenLook    C/Xm,UIL; C/Xol        Kovi
  342.                                 408-982-3840
  343. PSM            PM, MSW 3.0,    C/UIL            Lancorp
  344.             Motif 1.1.2,Mac                Pty Ltd.
  345.                                 +61 3 629 4833
  346.                                 Fax:  629 1296
  347.                                 (Australia)
  348. MOTIFATION        Motif 1.0|1.1.2    C(Xm)            AKA EDV
  349.                                +49 (0) 234/33397-0
  350.                                +49 (0) 234/33397-40 fax
  351. UIB            Open Look/Motif    C++(OI)            ParcPlace 
  352.                                 +1 303-678-4626
  353. ILOG BUILDER        Motif                    ILOG
  354.                                 1 415 390 9000
  355.                                 info@ilog.com
  356. XVT-Design        Motif,OL,Windows,&c            XVT
  357.                                 303-443-4223
  358.                                 info@xvt.com
  359.                                 
  360. Look for magazine reviews for more complete comparisons of meta-file formats,
  361. documentation, real ease-of-use, etc; Unix World and Unix Review often carry
  362. articles. See also SunExpert 5/93.
  363.  
  364.     In addition, Neuron Data (1 415 321-4488) makes Open Interface, a 
  365. window-system-independent object toolkit which supports interfaces which are 
  366. or resemble (supersets of) Mac, Windows, and Motif and Open Look; the package 
  367. includes an interface builder.
  368.  
  369.        In addition, the GRAMMI builder supports the development of Ada/X 
  370. applications using its own set of objects which are planned to have a Motif 
  371. look.  GRAMMI is written in Ada and generates Ada specs and stub bodies. 
  372. (1-800-GRAMMI-1).
  373.  
  374.     In addition, these non-WYSIWYG but related products may help for goals 
  375. of rapid prototyping of the application interface:
  376.  
  377.     WCL: the Widget Creation Library. Basically describes the widget
  378. hierarchy and actions in a resources file; available from fine archive servers
  379. everywhere, including devvax.jpl.nasa.gov (128.149.1.143) in pub/. Wcl provides
  380. a very thin layer over Xt without any internal tweaking. Version 2.5 is current
  381. [3/93].
  382.     WINTERP: an Xlisp-based Motif toolkit allows for interpretive 
  383. programming. The copy on the R4 tape is outdated; get a copy off export or 
  384. email to winterp-source%hplnpm@hplabs.hp.com. 
  385.     The Serpent UIMS permits the building of user-interfaces without 
  386. specific knowledge of coding but with an understanding of attributes being set
  387. on a particular [Motif] widget.  Beta Release 1.2 is available from 
  388. ftp.sei.cmu.edu (128.237.1.13) and can be found in /pub/serpent.  Serpent is 
  389. also available on export.lcs.mit.edu (18.24.0.11) in /contrib/serpent. Email
  390. questions can go to serpent@sei.cmu.edu. A commercial version of Serpent is
  391. available as "Agora" from ASET, 221 Woodhaven Drive, Pittsburgh, PA 15228.
  392.     Garnet is a Common Lisp-based GUI toolkit. Information is available 
  393. from garnet@cs.cmu.edu.
  394.     MetaCard is a hypertext/Rapid Application Development environment
  395. similar to Apple/Claris Corporation's HyperCard (info@metacard.com). MetaCard 
  396. is available via anonymous FTP from ftp.metacard.com, csn.org, or 
  397. 128.138.213.21. (Mailing list: listserv@grot.starconn.com).
  398.  
  399. ----------------------------------------------------------------------
  400. Subject:  90)  Where can I find X tools callable from shell scripts?
  401. I want to have a shell script pop up menus and yes/no dialog boxes if the user 
  402. is running X.
  403.  
  404.     Several tools in the R3 contrib/ area were developed to satisfy these
  405. needs: yorn pops up a yes/no box, xmessage displays a string, etc. There are
  406. several versions of these tools; few, if any, have made it to the R4 contrib/ 
  407. area, though they may still be available on various archive sites.
  408.     In addition, Richard Hesketh (rlh2@ukc.ac.uk) has posted the xmenu
  409. package to comp.sources.x ("v08i008: xmenu") for 1-of-n choices.  [7/90]
  410.     Two versions of XPrompt have been posted to comp.sources.x, the latter
  411. being an unauthorized rewrite. [R. Forsman (thoth@reef.cis.ufl.edu), 1/91]
  412.     There is a version of XMenu available from comp.sources.x; it is
  413. being worked on and will likely be re-released.
  414.     xp-1.1.tar.Z, xpick-1.0.tar.Z and xzap-1.0.tar.Z on export's contrib/
  415. are tools by Gerry.Tomlinson@newcastle.ac.UK which act as X versions of the 
  416. simple display and choice-making tools in K&P. [4/92]
  417.     xtpanel lets the user build a panel containing interactive objects such
  418. as buttons, sliders, text fields, etc., either from the command line or using a
  419. simple scripting language. It is available for anonymous ftp from 
  420. hanauma.Stanford.EDU (36.51.0.16) as pub/X/xtpanel.tar.Z and may also be found 
  421. in the alt.sources archives.
  422.  
  423. ----------------------------------------------------------------------
  424. Subject:  91)  Where can I get an X-based debugger?
  425.  
  426.     xdbx, an X interface to the dbx debugger, is available via ftp from 
  427. export. The current [1/91] version is 2.1 patchlevel 2.
  428.     An X interface to gdb called xxgdb is more like xdbx 2.1.2. It is part 
  429. of comp.sources.x volume 11 [2/91]; xxgdb-1.06.tar.Z is on export.
  430.     mxgdb is a Motif interface to gdb by Jim Tsillas 
  431. (jtsillas@bubba.ma30.bull.com); version 1.1.5 was released 1/93.
  432.     UPS is a source-level debugger which runs under the X11 and SunView
  433. window systems on Sun and DEC platforms. It is available from export 
  434. (18.24.0.11) as contrib/ups-2.45.tar.Z (also ups-2.45-to-2.45.2.patch.Z)
  435. and unix.hensa.ac.uk (129.12.21.7) in /pub/misc/unix/ups (or try mail to 
  436. archive@unix.hensa.ac.uk). [10/92] Unofficial fixes by Rod Armstrong 
  437. (rod@sj.ate.slb.com) are on unix.hensa.ac.uk in 
  438. /misc/unix/ups/contrib/rod@sj.ate.slb.com.
  439.  
  440. Also:
  441.     MIPS produces a highly-customizable (WCL-based) Visual Debugger.
  442.     You should be able to use Sun's dbxtool with its X11/NeWS server.
  443.     The CodeCenter (617-498-3000) source-level debugger, available on most
  444. major platforms, includes an X-based interface.
  445.     AT&T offers the eXamine Graphical Interface, an X11 interface to dbx
  446. and C++ dbx for Sun3 and Sun4 and sdb and sdb++ for 386 and 3B2 platforms. Call
  447. 1-508-960-1997 or contact examine@mvuxi.att.com for more information.
  448.         Solbourne (+1 303-678-4626) offers PDB, its X-based debugger for C, C++
  449. and Fortran.  PDB uses the OI toolkit and runs in either Open Look or Motif 
  450. mode. 
  451.     SCO (info@sco.com) offers dbXtra as part of several development 
  452. systems.
  453.         Lucid's Energize Programming System, a tightly integrated development
  454. environment for C and C++ programs, incorporates a graphical user interface on
  455. top of an extended version of gdb. Info:  lucid-info@lucid.com, or
  456. (800) 223-9322.
  457.  
  458. ----------------------------------------------------------------------
  459. Subject:  92)  How can I "tee" an X program identically to several displays?
  460.  
  461.     There are several protocol multiplexer tools which provide for the 
  462. simultaneous display of X clients on any number of machines.
  463.     XMX (an X Protocol Multiplexor) is available from wilma.cs.brown.edu 
  464. (128.148.33.66) as pub/xmx.tar.Z It works independently of the server and does
  465. not affect the application being shared; it was developed for use in the
  466. electronic classroom. An update is expected soon [5/93].
  467.     XTV is a conference program which can be used to duplicate the
  468. "chalkboard" on several displays. Release 1 is available on the X11R5 contrib
  469. tapes; a more recent version is on ftp.cs.odu.edu as pub/wahab/XTV.r2.tar.Z.
  470.     SHX from Michael Altenhofen of Digital Equipment GmbH CEC Karlsruhe 
  471. also does this; it is a "WYSIWIS" (What You See Is What I See) package in the 
  472. context of a computer-based learning/training tool to provide online help from
  473. remote tutors but is also useful for general window sharing. Information: 
  474. shX@nestvx.enet.dec.com.  SHX can be found on export and 
  475.         gatekeeper.dec.com:/pub/X11/contrib/shX.tar.Z, 
  476.         crl.dec.com:/pub/X11/contrib/shX.tar.Z 
  477. Modifications to SHX for color mapping and private color allocation by
  478. Mark J. Handley (M.Handley@cs.ucl.ac.uk) are on cs.ucl.ac.uk in 
  479. car/shX.car.tar.Z.
  480.     XTrap is implemented as a server/library extension and can be used
  481. to record and then replay an x session. It is available as
  482. export.lcs.mit.edu:/contrib/XTrapV33_X11R5.tar.Z.    
  483.     wscrawl can be used as a "multi-person paint program". It's available
  484. on sax.stanford.edu as wscrawl.shar.Z. Binaries are on doppler.ncsc.org in 
  485. pub/wscrawl.
  486.     Shdr implements a simple shared whiteboard, without a chalk-passing
  487. mechanism. It's available on parcftp.xerox.com as pub/europarc/shdr.tar.Z.
  488.     SketchPad 1.0 (3/93) is a distributed interactive graphical editor 
  489. particularly designed for sketching. Sources have been posted to alt.sources
  490. and are available from ftp.igd.fhg.de (192.44.32.1) in ~ftp/incoming/sketchpad.
  491.     The NESTOR project is described in "Upgrading A Window System For 
  492. Tutoring Functions", Michael Altenhofen et al., the proceedings of the EXUG
  493. Conference 11/90.
  494.  
  495. Also of use:
  496.         Hewlett-Packard Co. has a commercial product, "HP SharedX" which works
  497. under HP-UX currently on their 300, 400, and 700 series workstations and their
  498. HP 700/RX X Stations.  Machines receiving shared windows can be any X server.
  499. HP SharedX consists of a server extensions and a Motif based user interface
  500. process.  Contact your local HP sales rep. for more information.
  501.     IBM offers a commercial product.
  502.     Sun offers multi-user confering software called ShowMe.
  503.     InSoft (Mechanicsburg, PA, USA) offers multi-user confering software 
  504. called Communique.
  505.  
  506. [Thanks in part to scott@spectra.com (Tim Scott), 5/91, and to Peter Cigehn 
  507. (peter@lulea.trab.se), 8/92 ]
  508.  
  509. ----------------------------------------------------------------------
  510. Subject:  93)  TOPIC: BUILDING THE X DISTRIBUTION [topic needs updating to R5]
  511. ----------------------------------------------------------------------
  512. Subject:  94)  What's a good source of information on configuring the X build?
  513.  
  514.     This FAQ includes information on a number of "gotchas" that can bite 
  515. you on particular system. However, the best source of general information on 
  516. building the X11 release is found in the Release Notes. The file is bundled 
  517. separately from the rest of the release, so if it's become separated from your 
  518. sources you can FTP another copy separately: the file RELNOTES.[ms,PS,TXT] at 
  519. the top of the distribution. The file RELNOTES is also available from the 
  520. xstuff mail server.
  521.     In addition, O'Reilly & Associates's Volume 8 on X Administration
  522. includes information on configuring and building X.
  523.  
  524. ----------------------------------------------------------------------
  525. Subject:  95)  Why doesn't my Sun with a cg6 work with R5?
  526.  
  527.     Apparently gcc is the problem; it seems to produce fine code for all
  528. Sun displays except for the cgsix. The new sunGX.o distributed with fix-07 
  529. may fix the problem (note: not known to work on Solaris).
  530.  
  531. ----------------------------------------------------------------------
  532. Subject:  96)  Why doesn't my Sun with SunOS 4.1 know about _dlsym, etc.?
  533.  
  534.     If you get errors with _dlsym _dlopen _dlclose undefined, link with 
  535. libdl.a.  Add "-ldl" to your and eventually your site.def.  You may want to 
  536. surround it with "-Bstatic -ldl -Bdynamic" if you add it to the EXTRA_LIBRARIES
  537. variable, since "syslibs" get added after EXTRA_LIBRARIES on the eventual 
  538. compilation command; otherwise you may not have a shared libdl.  (Or compile 
  539. the stubs shared.)
  540.  
  541. [thanks to Joe Backo (joe.backo@East.Sun.COM), 12/91]
  542.  
  543. ----------------------------------------------------------------------
  544. Subject:  97)  What is this link problem with libXmu on SunOS 4.1.[23]?
  545.  
  546.     In SunOS 4.1.2 Sun fixed a shared-library bug in ld which conflicts
  547. with the way X builds the shared Xmu library, causing these symbols, notably, 
  548. to be undefined when building some X11 clients: 
  549.     _get_wmShellWidgetClass
  550.     _get_applicationShellWidgetClass
  551. Compiling "-Bstatic -lXmu -Bdynamic" appears to work. 
  552.  
  553. To solve the problem if you are using OpenWindows 3.0 (X11R4-based Xt), please 
  554. contact your local Sun office and request the following patches:
  555.  
  556. Patch i.d.      Description
  557. 100512-02       4.1.x OpenWindows 3.0 libXt Jumbo patch
  558. 100573-03       4.1.x OpenWindows 3.0 undefined symbols when using
  559.                         shared libXmu
  560.  
  561. [Greg Earle, earle@Sun.COM; 7/92] 
  562.  
  563. A source patch for use with the MIT X11R4 libraries was developed by Conrad 
  564. Kimball (cek@sdc.boeing.com); it retrofits into R4 some fixes made in R5 to
  565. get around this problem. The patch is on export in [1/93]
  566.     contrib/X11R4_sunos4.1.2_patch_version3.Z
  567.  
  568. ----------------------------------------------------------------------
  569. Subject:  98)  Why can't gcc compile X11R4 on my SPARC?
  570. I used gcc to compile the whole distribution, but I get several segmentation
  571. faults when running X.
  572.  
  573.     Note first that gcc on RISC machines does not necessarily result in
  574. any performance increase; it certainly is not as noticeable as it is on the
  575. 680x0 or VAX platforms.
  576.  
  577.     Here is the problem: gcc and cc use incompatible methods of passing 
  578. structures as arguments and returning them as function values, so when 
  579. gcc-compiled parts of X are linked with Sun-supplied functions that pass or 
  580. return structs, run-time errors occur.  Affected programs include rgb and 
  581. the server.
  582.  
  583.     This is from the GCC manual:
  584.  
  585.     On the Sparc, GNU CC uses an incompatible calling convention for 
  586.     structures.  It passes them by including their contents in the argument
  587.     list, whereas the standard compiler passes them effectively by 
  588.     reference.
  589.  
  590.     This really ought to be fixed, but such calling conventions are not yet
  591.     supported in GNU CC, so it isn't straightforward to fix it.
  592.  
  593.     The convention for structure returning is also incompatible, and
  594.     `-fpcc-struct-return' does not help.
  595.  
  596. You can duck the problem either by using cc throughout or by using it for just
  597. the routines which cause incompatibilities; the problem cannot be solved with 
  598. compilation flags.  
  599.  
  600.     Files which need to be compiled using cc include:
  601.         server/os/4.2bsd/oscolor.c 
  602.         rgb/rgb.c
  603.  
  604.     In addition, several of the "inet_" functions use structs as args or
  605. return values:  
  606.         clients/xhost/xhost.c 
  607.         clients/xauth/gethost.c. 
  608. Calls to inet_addr in /lib/CLX/socket.c and lib/X/XConnDis.c are possibly 
  609. harmless as they don't involve structs.
  610.  
  611. [collected by bashford@scripps.edu (Don Bashford); 8/90]
  612.  
  613. ----------------------------------------------------------------------
  614. Subject:  99)  What are these I/O errors running X built with gcc?
  615. When I try to run xinit or the Xsun server I get the error 
  616.     "Getting interface configuration: Operation not supported on socket. 
  617.     Fatal server bug! no screens found."
  618.  
  619.     Running the gcc fixincludes script apparently didn't work. You can do 
  620. this simple test:
  621.  
  622.     #include <sys/ioctl.h>
  623.     SIOCGIFCONF
  624.  
  625. Run that through cc -E and gcc -E.  The last line of output is the piece of 
  626. interest; it should be identical (modulo irrelevant differences like 
  627. whitespace).  If the gcc version has 'x' where the cc version has 'i', your 
  628. fixincludes run didn't work for some reason or other; go back to your gcc
  629. sources and run `fixincludes`; then rebuild the X distribution. If they are 
  630. identical, try running a make clean in mit/server and rebuilding, just to make 
  631. sure everything gets compiled with the proper include files.  
  632.  
  633. [courtesy der Mouse, mouse@LARRY.MCRCIM.MCGILL.EDU; 9/90]
  634.  
  635. ----------------------------------------------------------------------
  636. Subject: 100)  What are these problems compiling X11R4 on the older Sun3?
  637. In mit/server/ddx/sun/sunCG3C.c, we have found "missing" defines for 
  638. CG3AC_MONOLEN, CG3BC_MONOLEN, CG3AC_ENBLEN, CG3BC_ENBLEN. What should these be?
  639.  
  640.     The R4 Errata list distributed after X11R4 mentions that you can add
  641. these lines to the file on older SunOS versions (e.g. 3.5) to compile:
  642.         #define CG3AC_MONOLEN (128*1024)
  643.         #define CG3AC_ENBLEN  CG3AC_MONOLEN
  644.         #define CG3BC_MONOLEN CG3AC_MONOLEN
  645.         #define CG3BC_ENBLEN  CG3AC_MONOLEN
  646.  
  647.     However, the Sun3 should not actually ever have the CG3 device, and so 
  648. references to it can be removed from mit/server/ddx/sun/sunInit.c and the 
  649. Imakefile.  [11/90]
  650.  
  651. ----------------------------------------------------------------------
  652. Subject: 101)  What are these problems compiling the X server on SunOS 4.1.1?
  653. The file <sundev/cg6reg.h> isn't being found.
  654.  
  655.     Sun omitted <sundev/cg6reg.h> from SunOS 4.1.1. Remove the #include 
  656. from sunCG6C.c and replace it with the line 
  657.     #define CG6_VADDR_COLOR   0x70016000
  658. The file has changed from earlier versions of SunOS and should not be copied 
  659. from another distribution.
  660.  
  661. ----------------------------------------------------------------------
  662. Subject: 102)  What are these problems using R4 shared libraries on SunOS 4?
  663. All of the executables that I try to run have the following results:
  664.     ld.so: libXmu.so.4: not found
  665. or even:
  666.     ld.so: call to undefined procedure __GetHostname from 0xf776a96c
  667.  
  668.     If you are building with shared libraries on a Sun, remember that you 
  669. need to run "ldconfig" as root after installing the shared libraries (if you've
  670. installed X on a file-server, run it on the server's clients, too).  While 
  671. building and installing the distribution, you need to be careful to avoid 
  672. linking against any existing X shared libraries you might have (e.g. those 
  673. distributed with OpenWindows).  You should make sure you do not have 
  674. LD_LIBRARY_PATH set in your environment during the build or the installation.  
  675. If you are going to keep xterm and xload as setuid programs, please note that 
  676. the shared libraries must be installed in /usr/lib, /usr/local/lib, or 
  677. /usr/5lib for these programs to work (or else those programs must be linked 
  678. statically). [courtesy MIT X Consortium]
  679.     Note also that the program mkfontdir is run as part of the build; it
  680. attempts, however, to use the shared libraries before they have been installed.
  681. You can avoid the errors by building mkfontdir statically (pass -Bstatic to
  682. most C compilers).
  683.  
  684. ----------------------------------------------------------------------
  685. Subject: 103)  Can OLIT programs run with R5 Xt? (_XtQString undefined)
  686.  
  687. This is a bug in the OLIT.  _XtQString was an external symbol that existed in 
  688. X11R4 (upon which OW 3.0's libXt is based).  It wasn't documented and was 
  689. removed in X11R5 (MIT's guarantee of upward compatibility between the R4 and R5
  690. libraries only applied to the documented interface).  
  691.  
  692. A workaround is to temporarily set your LD_LIBRARY_PATH to point to the X11R4
  693. or OpenWindows Xt library that you linked the program against.
  694.  
  695. [10/92; from Barry Margolin (barmar@think.com); 3/93 from Jeff Francis 
  696. (jpf@heliocentric.com)]
  697.  
  698. ----------------------------------------------------------------------
  699. Subject: 104)  How do I get around the SunOS 4.1 security hole?
  700.  
  701.     There is a security problem with certain R4 clients (xterm and xload)
  702. running under SunOS 4.1 that have been installed setuid root and are using 
  703. shared libraries; to avoid the problem, do one of these:
  704.     1) make the program non-setuid. You should consult your system
  705. administrator concerning protection of resources (e.g. ptys and /dev/kmem) used
  706. by these programs, to make sure that you do not create additional security 
  707. problems at your site.
  708.     2) relink the programs statically (using -Bstatic).
  709.     3) install the libraries before linking and link with absolute paths
  710. to the libraries.
  711.  
  712. [from rws@expo.lcs.mit.edu (Bob Scheifler), 12/90]
  713.  
  714. The R5 version of xterm does this automatically by rebuilding xterm against the
  715. newly-installed libraries when xterm is being installed; this prevents an suid
  716. program from being built with libraries specified relatively. Note that this 
  717. may cause an inconvenience when doing the installation from NFS-mounted disks. 
  718. Xload has been rewritten to avoid the problem.
  719.  
  720. ----------------------------------------------------------------------
  721. Subject: 105)  How do I get around the frame-buffer security hole?
  722.  
  723.     On many systems the frame-buffer is unsecured by default; this permits 
  724. anyone who can log into your workstation to peek at your windowing session by 
  725. accessing the frame-buffer directly, or, as less of a privacy issue but perhaps
  726. more annoying, to [accidentally] start up a second X session on your console 
  727. display. Check the man page for fbtab(5).
  728.  
  729. [Thanks to Art Mulder (art@cs.ualberta.ca); 2/93.]
  730.  
  731. ----------------------------------------------------------------------
  732. Subject: 106)  TOPIC: BUILDING X PROGRAMS 
  733. ----------------------------------------------------------------------
  734. Subject: 107)  What is Imake?
  735.  
  736.     Imake is not a replacement for the make program; instead, it is a
  737. makefile-generator that takes advantages of the include-file and macro-
  738. processing capabilities of the C preprocessor cpp to generate makefiles 
  739. suitable for building software on a particular system. Although it is not 
  740. specific to X, the X release uses it to help solve a number of the 
  741. configuration issues that arise in making such a large system widely portable.
  742.     Imake has a fairly steep learning curve, in part because the process by
  743. which the system-specific configuration files, system-independent configuration
  744. files, and individual Imakefiles are melded to produce a Makefile is not 
  745. obvious.
  746.     There have been several different versions of imake; the R3, R4, and
  747. R5 versions are different.
  748.  
  749.     You can obtain information on imake from these sources:
  750.     - the R4 and R5 release notes and imake man page include information on
  751. using Imake to build X
  752.     - the R4 and R5 file mit/config/README also contains useful information
  753.     - on the R4 tapes, contrib/doc/imake/imake.tex is Mark Moraes' R3/R4
  754. guide to imake.
  755.     - the R5 mit/doc/config/usenixws/paper.ms contains a paper by Jim
  756. Fulton on an early version of Imake
  757.     - Paul DuBois (dubois@primate.wisc.edu) has written a useful 
  758. explanation of how Imake works and how to use it in configuring X for non-
  759. supported systems; the document is available from ftp.primate.wisc.edu
  760. in the directory ~ftp/pub/imake-stuff; look for config-X11R4.ms (troff) and 
  761. config-X11R4.ps (PostScript). Some supplemental appendices are nearby. 
  762. [7/91: document version is now 1.06] These imake papers are available by email;
  763. mail a message body of "send imake-stuff help" to almanac@primate.wisc.edu.
  764. They are also available by gopher to gopher.primate.wisc.edu under "Primate 
  765. Center Software Archives".
  766.     - see "System Administration - Imake: Friend or Foe?" by Dinah McNutt
  767. in the November 1991 issue of SunExpert.
  768.     - German readers should expect in June 1992 an article "Das Meta-Make 
  769. / I make, you make / Schwerelos" by Rainer Klute in "iX 
  770. Multiuser-Multitasking-Magazin", directed at application programmers needing to
  771. write Imakefiles. An English-language derivative of this article is in The
  772. X Journal, issue 2:1.
  773.     - The O'Reilly X Resource issue #2 contains Paul Davey's article on
  774. demystifying Imake.
  775.     - Alain Brossard's working document full of tips on Imake is in 
  776. sasun1.epfl.ch:pub/imakefile.1.Z.
  777.  
  778. [1/91;12/91;5/92;8/92]
  779.  
  780. ----------------------------------------------------------------------
  781. Subject: 108)  Where can I get imake?
  782.  
  783.     Versions are distributed with the R4 and R5 releases. An earlier 
  784. version is distributed with the X11R3 release; some third-party toolkits 
  785. redistribute versions of imake along with their own implementations of the 
  786. template and configuration files. There are no real standards for such 
  787. configuration files, although most *current* contributed software expects the 
  788. templates distributed with X11R5.
  789.     export contains the R5 distribution unpacked, so you can pick up imake
  790. without picking up the entire distribution.
  791.     A stand-alone version of Imake, but one stemming from X11R5, is in
  792. ftp.germany.eu.net:pub/X11/misc/imake/imake-pure.tar.Z (192.76.144.75).
  793.  
  794. ----------------------------------------------------------------------
  795. Subject: 109)  I have a program with an Imakefile but no Makefile. What to do?
  796.  
  797.     If you have R4 or R5 installed on your system, run "xmkmf". This is a 
  798. script which runs imake for you with the correct arguments. The output is a 
  799. Makefile configured for your system and based on the Imakefile. Then run make, 
  800. which will use that new Makefile to compile the program.
  801.  
  802. ----------------------------------------------------------------------
  803. Subject: 110)  Why can't I link to the Xlib shape routines?
  804. When I try to compile certain programs, I get the following link error:
  805.     Undefined:
  806.     _XShapeQueryExtension
  807.     _XShapeCombineMask
  808.  
  809.     These routines are actually part of the Shape Extension to X (SHAPE)
  810. which was introduced in the MIT X11R4 distribution and allows non-rectangular
  811. windows.  Like the other sample server extensions, the shape extension will 
  812. only run on a server which supports it.  Pre-X11R4 servers, as well as many 
  813. vendor-supplied servers, do not support the shape extension, in which case 
  814. they will display rectangular windows anyway.
  815.  
  816.     In order to use the shape extension, you must link to the library 
  817. libXext.a.  In the X11R4 distribution, this library and the associated includes
  818. will be in the mit/extensions directory.  If you do not have these files, do 
  819. not despair:  many freeware programs which use the shape extension can also be 
  820. compiled without it by removing the -DSHAPE define from the Makefile; you can
  821. probably do this and compile successfully against your older vendor-supplied X 
  822. libraries.
  823.  
  824. [from John B. Melby, melby%yk.fujitsu.co.jp@uunet.uu.net, 3/91]
  825.  
  826. ----------------------------------------------------------------------
  827. Subject: 111)  What are these problems with "_XtInherit not found" on the Sun?
  828. When I run a X program that I wrote on a SunOS 4.0.3 or 4.1 machine I get the 
  829. error "ld.so: symbol not found _XtInherit".
  830.  
  831.     What you are seeing is a side-effect of a kludge in the R4 libXt.a to 
  832. get Sun shared libraries working.  Apparently, you can't share a function that 
  833. is both called and compared, as _XtInherit is. This was handled by putting 
  834. _XtInherit in the same file as a function that is always used, thereby 
  835. guaranteeing that it would be loaded -- that is, in Initialize.c, where 
  836. XtToolkitInitialize() and XtInitialize() reside. These routines would normally
  837. be called.
  838.  
  839.     You are probably seeing this error because your program is not a normal
  840. Xt-based program and does not call XtToolkitInitialize() anywhere. 
  841.     1) it may be a program that uses Xt functions but never opens a 
  842. connection to the X server.  [OSF/Motif's 1.1.0 UIL had this problem; it called
  843. XtMalloc() and other Xt functions.] The solution is to add the call to your 
  844. program; the function does not have to be executed, just linked in.
  845.     2) alternatively, your program doesn't need any Xt functions and is
  846. correct in not calling XtToolkitInitialize() -- it may be an Xlib or XView 
  847. program. In this case, you can remove -lXt from your link command. 
  848.  
  849.     It should not be necessary to link the shared libraries statically,
  850. although this will certainly solve the problem.
  851.     
  852. [from Jordan Hayes (now jordan@MooreNet.COM) and Danny Backx (db@sunbim.be); 
  853. 11/90]
  854.  
  855. ----------------------------------------------------------------------
  856. Subject: 112)  Why can't I compile my R3 Xaw contrib programs under the new X?
  857. I have a program that worked well under X11R3. When I try to link it under 
  858. the current version of X, I get this message:
  859.     Undefined:
  860.     _XtScrollBarSetThumb
  861.     _XtTextSetInsertionPoint
  862.     _XtTextReplace
  863.  
  864.     There were several name changes in the Athena widget set (in addition
  865. to the header files moving into <X11/Xaw/>); these are mentioned in the R4
  866. release notes. In this case, these functions are not really Xt functions but
  867. are part of the Xaw text widget and so have been renamed from Xt* to Xaw*.
  868. [10/90]
  869.  
  870. ----------------------------------------------------------------------
  871. Subject: 113)  TOPIC: PROGRAMMING PROBLEMS AND PUZZLES
  872. ----------------------------------------------------------------------
  873. Subject: 114)  Why doesn't my program get the keystrokes I select for (sic)?
  874.  
  875.     The window manager controls how the input focus is transferred from one
  876. window to another.  In order to get keystrokes, your program must ask the
  877. window manager for the input focus.  To do this, you must set up what are
  878. called "hints" for the window manager.  If your applications is Xlib-based, you
  879. can use something like the following:
  880.  
  881.         XWMHints wmhints;
  882.         ...
  883.         wmhints.flags = InputHint;
  884.         wmhints.input = True;
  885.         XSetWMHints(dpy, window, &wmhints)
  886.  
  887. If your application is based on the Xt Intrinsics, you can set the XtNinput 
  888. resource to be True (as you probably want to in any case); if you don't have
  889. source, you can start up the application with the resource '*input:True'.
  890.  
  891. Certain window managers, notably dxwm and olwm, are very picky about having 
  892. this done. 
  893.  
  894.     If you are using Sun's OpenWindows olwm, you can also add this resource
  895. to your defaults file to use clients that aren't ICCCM-compliant.
  896.     OpenWindows.FocusLenience:       true
  897.  
  898. [mostly courtesy Dave Lemke of NCD and Stuart Marks of Sun]
  899.  
  900. ----------------------------------------------------------------------
  901. Subject: 115)  How do I figure out what window manager is running?
  902.  
  903.     You can't reliably tell; whatever mechanism you could use could be
  904. spoofed in any case. 
  905.     For most cases, you shouldn't care which window manager is running, so 
  906. long as you do things in an ICCCM-conformant manner. There are some cases in 
  907. which particular window managers are known to do things wrong; checking for
  908. particular hints placed on the window by the window manager so that you can 
  909. sidestep the problem may be appropriate in these cases. Alternatively, it may 
  910. be appropriate to determine which window manager is running in order to take
  911. advantage of specific *added* features (such as olwm's push-pin menus) in order
  912. to give your program *added* functionality. Beware of usurping the window 
  913. manager's functions by providing that functionality even when it is missing;
  914. this surely leads to future compatibility problems.
  915.  
  916. ----------------------------------------------------------------------
  917. Subject: 116)  Is there a skeleton X program available?
  918.     
  919.     There is no general framework such as the TransSkel program for the 
  920. Macintosh which handles lots of the odds and ends and overhead of development 
  921. under a window system and which can be used as a platform for additional 
  922. development. In X, the problem is typically solved by using an interactive 
  923. application builder tool or by using cut&paste on existing X applications. Good
  924. applications which you might look to manipulate when you want to "test just 
  925. this one little thing" include contrib/clients/xskel, a simple R4 program that 
  926. puts up a window and allows sketching in it and offers a starting point for
  927. quick hacks, the Xaw examples in the examples/ directory in the R3 and R4 
  928. distributions, and the Xlib "Hello World" example in the R3 doc/HelloWorld and 
  929. R4 doc/tutorials/HelloWorld; an updated version of this program which uses R4 
  930. Xlib calls and current ICCCM conventions was posted in 2/90 to comp.windows.x  
  931. by Glenn Widener of Tektronix.     [3/90]
  932.  
  933.     In addition, a sample Xt program (for Xaw or Xm) by Rainer Klute 
  934. showing how to open multiple displays and how to catch a broken display 
  935. connection is available on export.lcs.mit.edu in contrib/mdisp.tar.Z. [4/92]
  936.  
  937. ----------------------------------------------------------------------
  938. Subject: 117)  Why does XtGetValues not work for me (sic)?
  939.  
  940.     The XtGetValues interface for retrieving resources from a widget is
  941. sensitive to the type of variable. Your code may be doing something like this:
  942.     {
  943.     Arg args[3];
  944.     int i;
  945.     int sensitive;        /* oops; wrong data type */
  946.     i=0;
  947.     XtSetArg (args[i], XtNsensitive, &sensitive); i++;
  948.     XtGetValues(widget, args, i );
  949.     ...
  950.     }
  951.  
  952. But XtNsensitive is a Boolean, which on most machines is a single byte; 
  953. declaring the variable "sensitive" as Boolean works properly. This problem 
  954. comes up often when using particular toolkits that redefine the Xt types 
  955. Dimension and Position; code that assumes they are int will have similar 
  956. problems if those types are actually short. In general: you are safe if you
  957. use the actual type of the resource, as it appears in the widget's man page.
  958. [11/90]
  959.  
  960. ----------------------------------------------------------------------
  961. Subject: 118)  Why don't XtConfigureWidget/XtResizeWidget/XtMoveWidget work?
  962.  
  963.     You're probably trying to use these functions from application code.
  964. They should be used only internally to widgets; these functions are for a 
  965. parent widget to change the geometry of its children. Other promising 
  966. functions, XtMakeGeometryRequest() and XtMakeResizeRequest(), are also for use 
  967. only by widgets, in this case by a child to request a change from its parent.
  968.     The only way for your application to request a geometry change for a
  969. widget is to issue an XtSetValues call setting some of the geometry resources.
  970. Although this will result in the widget-internal functions' being called, your
  971. application code must use the standard XtSetValues interface or risk the 
  972. widgets' data becoming corrupted.
  973.     [The Xlib calls XMoveWindow() and XResizeWindow() should similarly be 
  974. avoided; they shouldn't be used to change XtNx, XtNy, XtNwidth, or XtNheight.]
  975.  
  976. ----------------------------------------------------------------------
  977. Subject: 119)  Why isn't there an XtReparentWidget call like XReparentWindow?
  978.  
  979.     Although there are various details of the current implementation of
  980. the Xt internals which make reparenting difficult, the major reason that no
  981. such call exists is that it remains undefined what the set of resources for
  982. the "new" widget should be. Resources are typically set based on the location
  983. in the instance hierarchy; what resources should change if the instance moves?
  984. What should happen to the widget's children? And by the time such semantics are
  985. defined, there would probably be little advantage over destroying the old 
  986. widget and creating a new widget in the correct location with the desired 
  987. resources, as setting the resources correctly is the majority of work in 
  988. creating a new widget.
  989.  
  990.     Note that reparenting is possible in the OI toolkit.
  991.  
  992. ----------------------------------------------------------------------
  993.  
  994. David B. Lewis                     faq%craft@uunet.uu.net
  995.  
  996.         "Just the FAQs, ma'am." -- Joe Friday 
  997. -- 
  998. David B. Lewis        Temporarily at but not speaking for Visual, Inc.
  999. day: dbl@visual.com    evening: david%craft@uunet.uu.net
  1000.